package com.apps.goods.service;

import com.apps.goods.model.po.KupaGoodsCat;
import com.apps.goods.model.vo.KupaGoodsCatVo;
import com.apps.sworld.dao.sGod;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类 最多支持2级分类
 * </p>
 *
 * @author 大鹏
 * @since 2020-10-02
 */
public interface IKupaGoodsCatService extends sGod<KupaGoodsCat>
{

    /**
     * 获取主要数据
     * @return
     */
    List<KupaGoodsCatVo> getMasterData();

    /**
     * 添加分类
     * @param father_id
     * @param name
     * @return
     */
    KupaGoodsCat saveToDB(Integer father_id,String name);
}
